#include "driver_iwdg.h"
#include <stdio.h>

static IWDG_HandleTypeDef  hiwdg = {0};

void Driver_IWDG_Init(void)
{
    hiwdg.Instance = IWDG;
    hiwdg.Init.Prescaler = IWDG_PRESCALER_256;
    hiwdg.Init.Reload = 4095;  
    HAL_IWDG_Init(&hiwdg);
}


void IWDG_Feed(void)
{
    HAL_IWDG_Refresh(&hiwdg);
//    printf("IWDG Feed Success\r\n");
}

